[...id].astro 828 B

1234567891011121314151617181920212223242526272829303132333435
  1. ---
  2. import config from "virtual:starlight/user-config";
  3. import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro';
  4. import Share from "../../components/Share.tsx";
  5. export const prerender = false;
  6. // TODO: Replace with API URL from environment
  7. const { id } = Astro.params;
  8. console.log(Astro.url.pathname);
  9. //console.log(config);
  10. ---
  11. <StarlightPage
  12. hasSidebar={false}
  13. frontmatter={{
  14. title: "Share",
  15. pageFind: false,
  16. template: "splash",
  17. tableOfContents: false,
  18. }}
  19. >
  20. <Share id={id} api="https://api.dev.opencode.ai" client:only="solid" />
  21. </StarlightPage>
  22. <style is:global>
  23. body > .page > .main-frame .main-pane > main > .content-panel:first-of-type {
  24. display: none;
  25. }
  26. body > .page > .main-frame .main-pane > main > .content-panel + .content-panel {
  27. border-top: none;
  28. }
  29. </style>